<!--{template common/header}-->
<script language="javascript" type="text/javascript">
	if(document.URL=="{$_G['siteurl']}plugin.php?id=renren:connect") {
		window.location.href='index.php';
	}
</script>
<!--{if !$divuser && (($isbind['bing']==1 && $isbind['tag']!=2) || !$_G['renren'])}-->
	<script language="javascript" type="text/javascript">
		window.location.href=document.URL;
	</script>
<!--{else}-->
	<!--{if $divuser}-->
	<script type="text/javascript">
		function rr_chglogin(){
			hideWindow('login');
			hideWindow('register');
			XN.Connect.requireSession(function(){
			setTimeout("showWindow('renren','plugin.php?id=renren:connect&chglogin=1')",500);
			});
		}
		function rr_chglogout(){
			hideWindow('renren', 0, 1);
			XN.Connect.logout(function(){rr_login();});
		}
	</script>
	<div class="blr">
		<h3 class="flb" style="background:no-repeat #055bae;">
			<em id="returnmessage_LR573"></em>
			<span><a title="{lang renren:close}" onclick="hideWindow('renren', 0, 1);" class="flbc" href="javascript:;">{lang renren:close}</a></span>
		</h3>
		<div style="margin: 10px 128px;">
			<form method="post" action="plugin.php?id=renren:connect" >
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<p>{lang renren:log_tip3}</p>
				<div style="margin-top:10px;margin-bottom:10px;border-bottom:#999 1px dashed;">
				<p>{lang renren:log_nowrrname}:<strong>$user_info->rrname</strong></p>
				<!--{if $isbind['bing']}-->
				<p>{lang renren:log_nowusername}:<strong>$isbind['username']</strong></p>
				<!--{else}-->
				[{lang renren:log_unbind}]
				<!--{/if}-->
				</div>
				<div style="text-align:center;margin-bottom:10px;">
				<p>{lang renren:log_tip4}</p>
				<p>{lang renren:log_tip5}</p>
				</div>
				<div style="text-align:center;margin-bottom:10px;">
					<button class="pn pnc" type="button" name="rrchange" value="true" onclick="rr_chglogin();"><span>{lang renren:rr_change}</span></button>&nbsp;&nbsp;
					<button class="pn pnc" type="button" name="rrchglogout" value="true" onclick="rr_chglogout();"><span>{lang renren:rr_chglogout}</span></button>
				</div>
			</form>
		</div>
	</div>
	<!--{else}-->
	<script type="text/javascript">
		function setTab(m,n,obj){
		    obj.checked='checked';
			var menu=document.getElementById("tab"+m).getElementsByTagName("input");
			var div=document.getElementById("tablist"+m).getElementsByTagName("div");
			var showdiv=[];
			for (i=0; j=div[i]; i++) {
				if ((" "+div[i].className+" ").indexOf(" tablist ")!=-1) {
					showdiv.push(div[i]);
				}
			}
			for(i=0;i<menu.length;i++) {
				showdiv[i].style.display=i==n?"block":"none";
			}
		}
	</script>
	<div class="blr">
		<h3 class="flb" style="background: no-repeat #055bae;">

			<em id="returnmessage_LR573"></em>
			<span><a title="{lang renren:close}" onclick="hideWindow('renren', 0, 1);" class="flbc" href="javascript:;">{lang renren:close}</a></span>
			<p style="color:#fff;width:200px;">{lang renren:rr_dz_user}</p>
		</h3>
		<div style="margin: 10px 128px;">
			<p>{lang renren:log_tip1}</p>
			<p>{lang renren:log_tip2}</p>
			<div style="margin-top:10px;margin-bottom:10px;border-bottom:#999 1px dashed;height:100px;width:100%;">
				<img style="border: 1px solid #055bae; margin-left: 2px; float: left;" src="source/plugin/renren/template/image/renren.png"/>
				<img style="float: left;" src="source/plugin/renren/template/image/connect.png"/>
				<img style="border:#055bae 1px solid; float:left; margin-right: 2px;" src="source/plugin/renren/template/image/$rr_pic"/>
			</div>
		<!--{if $isbind[tag]!=2}-->
			<div id="tab1">
			<table style="width:100%;">
			<tr>
					<td style="border:0px"><input type="radio" name="identity" onclick="setTab(1,0,this)"  checked="checked" > {lang renren:log_noid}</input></td>
					<td style="border:0px"><input type="radio" name="identity" onclick="setTab(1,1,this)" /> {lang renren:log_beid}</input></td>
			</tr>
			</table>
			

			</div>
			<div id="tablist1">
				<div class="tablist block" style="float:left; text-align:center; width:330px; line-height:25px; display:block">
					<form method="post" action="plugin.php?id=renren:connect" >
						<input type="hidden" name="formhash" value="{FORMHASH}" />
						<div class="c">
							<div class="lgfm bm" style="margin-bottom:10px; padding:0px; border:none; float:left; width:100%">
								<label><em>{lang renren:dz_username}:</em><input type="text" name="username" value="$username" class="txt"/></label>
								<!--{if $user_info->parden==1}--> <p style="float:left;text-align:left;color:#ff0000; width:280px">{lang renren:rr_parden}</p><!--{/if}-->
								<!--{if  $_G['cache']['plugin']['renren']['rr_email']}-->
									<label><em>{lang renren:dz_email}:</em><input type="text" name="email" value="" class="txt" /></label>
									<p style="float:left">{lang renren:dz_emailtip}</p>
								<!--{/if}-->
								<!--{if  $_G['cache']['plugin']['renren']['rr_password']}-->
									<label><em>{lang renren:dz_password}:</em><input type="text" name="password" value="" class="txt" /></label>
								<!--{/if}-->
								<label><input name="rr_ava" type="checkbox" value="1" checked />{lang renren:rr_avsync}</label>
							</div>
							<div><button class="pn pnc" type="submit" name="rradmincreatesubmit" id="bgsubmit2" value="true"><span>{lang renren:login}</span></button></div>
						</div>
					</form>
				</div>
				<div class="tablist block" style="float:left; text-align:center; width:330px; line-height:25px;display:none">
					<form method="post" autocomplete="off" action="plugin.php?id=renren:connect">
						<div class="c">
							<input type="hidden" name="formhash" value="{FORMHASH}" />
							<input type="hidden" name="handlekey" value="lostpwform" />
							<div class="lgfm bm" style="margin-bottom:10px; padding:0px; border:none; width:100%; float:left; height:120px;">
								<label><em>{lang renren:username}</em><input type="text" name="username" size="25" value=""  tabindex="1" class="txt" /></label>
								<label><em>{lang renren:password}</em><input type="password" name="password" size="25" value=""  tabindex="1" class="txt" /></label>
								<label><em>{lang renren:security}</em><select onchange="if(this.value &gt; 0) {$('answernew').style.display='';} else {$('answernew').style.display='none';}" tabindex="3" name="questionidnew" style="width:180px">
									<option value="0">{lang renren:security_question}</option>
									<option value="1">{lang renren:security_question_1}</option>
									<option value="2">{lang renren:security_question_2}</option>
									<option value="3">{lang renren:security_question_3}</option>
									<option value="4">{lang renren:security_question_4}</option>
									<option value="5">{lang renren:security_question_5}</option>
									<option value="6">{lang renren:security_question_6}</option>
									<option value="7">{lang renren:security_question_7}</option>
								</select></label>
								<span style="display: none" id="answernew"><label><em>{lang renren:security_answer} </em><input type="text" tabindex="4" class="px" size="25" name="answernew"></label></span>
							</div>
							<div><button class="pn pnc" type="submit" name="discuz_bind" value="true" tabindex="100"><span>{lang renren:rr_bind}</span></button></div>
						</div>
					</form>
				</div>
			</div>
		<!--{elseif $isbind[tag]==2}-->
			<div>
				<p>{lang renren:log_rbind}</p>
				<form method="post" action="plugin.php?id=renren:connect">
					<input type="hidden" name="formhash" value="{FORMHASH}" />
					<p>{lang renren:log_rbindname}:$username</p>
					<div style="text-align:center;"><button class="pn pnc" type="submit" name="discuz_rrbind" value="true" tabindex="100"><span>{lang renren:rr_bind}</span></button></div>
				</form>
			</div>
		<!--{/if}-->
		</div>
	</div>
	<!--{/if}-->
<!--{/if}-->
<!--{template common/footer}-->